﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using iTextSharp;
using iTextSharp.text;
using iTextSharp.text.pdf;

namespace OurWedding1.IO
{
    public class SingleCellTable:IPdfPTableCreatable
    {
        public string Text { get; set; }
        public PdfPTable CreateTable()
        {
            var result = new PdfPTable(1);
            var phrase = new Phrase(Text);
            var cellText = new PdfPCell(phrase) { Border = 0, HorizontalAlignment = Element.ALIGN_LEFT };
            result.AddCell(cellText);
            return result;
        }
    }
}